package com.bw.sercive;

import com.bw.bean.Major;
import com.bw.bean.Stu;
import com.bw.dao.StuDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StuSerciveImpl implements StuSercive {
    @Autowired
    StuDao dao;

    @Override
    public int add(Stu stu) {
        return dao.add(stu);
    }

    @Override
    public List<Major> list() {
        return dao.list();
    }
}
